package io.github.talelin.latticy.common.enumeration;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * @authoer:wulongbo
 * @createDate:2022/6/28
 * @description:
 */
@AllArgsConstructor
@Getter
public enum MassUnitEnum {

    /**
     * 厘米
     */
    KG(1,"KG"),

    /**
     * 盎司
     */
    OZ(2,"OZ");

    @EnumValue
    private Integer massUnit;

    @JsonValue    //标记响应json值
    private String massUnitDesc;
}
